import java.util.Scanner;
int strawberryPrice = 80;
int chocolatePrice = 37;
int vanillaPrice = 2;
Scanner scanner = new Scanner(System.in);
while (true) {
        System.out.println("Please choose an ice cream flavor (1. Strawberry, 2. Chocolate, 3. Vanilla):");
        int flavorChoice = scanner.nextInt();
    
        System.out.println("How many scoops would you like?");
        int scoops = scanner.nextInt();
    
        int totalPriceInPence = 100;
        if (scoops < 1) {
                System.out.println("We don't sell just a cone. Let's try again.");
                continue;
        } else if (scoops > 3) {
                System.out.println("That's too many scoops to fit in a cone. Let's try again.");
                continue;
        }
    
        switch (flavorChoice) {
                case 1:
                    totalPriceInPence += strawberryPrice * scoops;
                    break;
                case 2:
                    totalPriceInPence += chocolatePrice * scoops;
                    break;
                case 3:
                    totalPriceInPence += vanillaPrice * scoops;
                    break;
                default:
                    System.out.println("Invalid flavor choice. Let's try again.");
                    continue;
        }
    
        int pounds = totalPriceInPence / 100;
        int pence = totalPriceInPence % 100;
    
        System.out.println("Total price is: " + pounds + " pounds and " + pence + " pence.");
    
        System.out.println("Do you want to order again? (y/n)");
        String answer = scanner.next();
        if (!answer.equalsIgnoreCase("y")) {
                break;
        }
}